<template>
	<view class="account-security">
		<u-cell-group>
            <u-cell-item title="账户密码" value="修改" @click="handlePassword"></u-cell-item>
            <u-cell-item title="手机号码" value="修改" @click="handleMobile"></u-cell-item>
            <u-cell-item title="支付密码" :value="isPassword ? '修改' : '设置'" @click="handlePaymentPassword"></u-cell-item>
            <!-- <u-cell-item title="第三方登录" value="查看" @click="handleBinding"></u-cell-item> -->
        </u-cell-group>
	</view>
</template>

<script>
    import * as API_Deposit from '@/api/deposit'
	export default {
        data() {
            return {
                isPassword: ''
            }
        },
        mounted() {
            API_Deposit.checkPassword().then(response => {
                this.isPassword = response
            })
        },
		methods: {
            //账号密码
            handlePassword() {
                uni.navigateTo({
                    url:"/mine-module/change-password"
                })
            },
            //手机号码
            handleMobile() {
                uni.navigateTo({
                    url:"/mine-module/change-mobile"
                })
            },
            //支付密码
            handlePaymentPassword() {
                uni.navigateTo({
                    url:"/mine-module/change-paymentpassword"
                })
            },
            //第三方登录
            handleBinding() {
                uni.navigateTo({
                    url:"/mine-module/account-binding"
                })
            }
        }
	}
</script>

<style lang="scss" scoped>

</style>
